﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UserTypeController : ControllerBase,IUserTypeBll
    {
        private IUserTypeBll bll;

        public UserTypeController(IUserTypeBll bll)
        {
            this.bll = bll;
        }
        /// <summary>
        /// 用户等级显示
        /// </summary>
        /// <returns></returns>
        [HttpGet("GetUserTypes")]
        public List<UserType> GetUserTypes()
        {
            return bll.GetUserTypes();
        }
    }
}
